﻿<%@ Page Language="C#" MasterPageFile="~/Shared/DialogPage.Master" AutoEventWireup="true" CodeBehind="SelectContractItemCalc.aspx.cs" Inherits="Runda.CMS.Portal.ContractManage.SelectContractItemCalc" Title="" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="gridSubItems">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="txtAverageProfitRate" /> 
            </UpdatedControls>
        </rad:AjaxSetting>   
    </AjaxSettings>
</rad:RadAjaxManager>
<table class="mnubar" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td width="9">
                <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif">
            </td>
            <td class="icMenu" nowrap>
                <span class="menu" tabindex="0" menu="__appFormMenu_m0">文件
                    <table id="__appFormMenu_m0" class="mnuList" cellspacing="0" cellpadding="3">
                        <colgroup>
                            <col class="mnuLeft">
                            <col class="mnuItm">
                            <col align="right" width="20">
                            <tbody>
                                <tr tabindex="0" action="window.close();">
                                    <td>
                                    </td>
                                    <td colspan="2" nowrap>
                                        关闭
                                    </td>
                                </tr>
                            </tbody>
                    </table>
                </span><span class="menu" tabindex="0" menu="__appFormMenu_m1">帮助
                    <table id="__appFormMenu_m1" class="mnuList" cellspacing="0" cellpadding="3">
                        <colgroup>
                            <col class="mnuLeft">
                            <col class="mnuItm">
                            <col align="right" width="20">
                            <tbody>
                                <tr tabindex="0" action="">
                                    <td>
                                    </td>
                                    <td colspan="2" nowrap>
                                        帮助
                                    </td>
                                </tr>
                            </tbody>
                    </table>
                </span>
            </td>
        </tr>
    </tbody>
</table>

 <div class="area" id="areaForm" >
                 
    <div style="margin: 5px 0 5px 0">
    </div>
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td style="padding-left: 5px" nowrap>
                    <b>试剂利润率</b>(请勾选要参与计算的试剂品种)
                </td>
                <td style="padding-left: 5px">
                    <img src="../Content/Grid/separator.gif">
                </td>
                <td class="icMenu" nowrap> 
                </td>
                <td class="icMenu mnuRight" nowrap> 
                     </td>
            </tr>
        </tbody>
    </table>
    
     <rad:RadGrid runat="server" ID="gridSubItems" Skin="OCM" AutoGenerateColumns="False" AllowSorting="false" GridLines="None" 
         EnableAJAX="false" EnableAJAXLoadingTemplate="True" onitemdatabound="gridSubItems_ItemDataBound" onitemcommand="gridSubItems_ItemCommand">
       <AJAXLoadingTemplate>
       <img src="../Images/loadding_orange.gif" /> 加载中...
        </AJAXLoadingTemplate>
        <MasterTableView DataKeyNames="ItemID">
            <Columns>
                 <rad:GridTemplateColumn HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="cbxSelect" runat="server" AutoPostBack="true" OnCheckedChanged="cbxSelect_CheckedChanged"/>
                     </ItemTemplate>
                </rad:GridTemplateColumn> 
                <rad:GridBoundColumn DataField="InstrumentCode" HeaderText="编码">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="InstrumentName" HeaderText="名称"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="Price" HeaderText="销售价"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="PutDiscountPrice" HeaderText="折扣价"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="Cost" HeaderText="成本价"></rad:GridBoundColumn>                
                <rad:GridTemplateColumn HeaderText="利润率">
                <ItemTemplate>
                    <asp:Label ID="lblRate" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                </rad:GridTemplateColumn>
                <rad:GridBoundColumn DataField="ItemStandard" HeaderText="规格"></rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="unit" HeaderText="单位"></rad:GridBoundColumn> 
            </Columns>
        </MasterTableView>
    </rad:RadGrid>   
    
 </div>
 
 <div class="Container">
      <table id="Table3" class="find" cellspacing="0" cellpadding="0" border="0"> 
        <tbody>
            <tr>
                <td class="wizHead" colspan="7">
                   <div style="height:23px;line-height:23px;"><b>平均利润率</b></div>
                </td>
            </tr>
            <tr id="Tr2" height="40">
                <td class="wizBox1" colspan="7">
                <table cellpadding="2" cellspacing="2">
                    <tr><td>平均利润率</td><td> 
                        <rad:RadNumericTextBox ID="txtAverageProfitRate" runat="server">
                        <NumberFormat DecimalDigits="4" />
                        </rad:RadNumericTextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="button" onclick="btnSave_Click"/></td>
                        </tr>
                </table>
                </td>
            </tr>
        </tbody>
    </table>   
 </div>
</asp:Content>
